//
//  AMoreBanner.h
//  AdMoreSDK
//
//  Created by Hayder on 2023/5/6.
//  Banner广告

#import "AdMoreBaseAd.h"

@class AdMoreBannerAd;
@protocol AdMoreBannerAdDelegate <NSObject>

@optional
/**加载成功回调*/
- (void)bannerAdDidLoad:(AdMoreBannerAd *)bannerAd bannerView:(UIView *)bannerView;

/**加载失败回调*/
- (void)bannerAd:(AdMoreBannerAd *)bannerAd didLoadFailWithError:(NSError *)error;

/**展示成功回调*/
- (void)bannerAdDidBecomeVisible:(AdMoreBannerAd *)bannerAd bannerView:(UIView *)bannerView;

/**广告点击回调*/
- (void)bannerAdDidClick:(AdMoreBannerAd *)ABUBannerAd bannerView:(UIView *)bannerView;

/**广告关闭回调*/
- (void)bannerAdDidClosed:(AdMoreBannerAd *)ABUBannerAd bannerView:(UIView *)bannerView dislikeWithReason:(NSArray<NSDictionary *> *)filterwords;

@end

@interface AdMoreBannerAd : AdMoreBaseAd

@property (nonatomic, weak) id<AdMoreBannerAdDelegate> delegate;

@property (nonatomic, strong,readonly) NSString *slotID;
@property (nonatomic, strong,readonly) UIViewController *rootViewController;
@property (nonatomic, assign,readonly) CGSize adSize;

/**
 初始化方法
 slotID:广告位ID
 rootViewController:根控制器，用于广告的跳转
 adSize:广告的大小
 */
- (instancetype)initWithSlotID:(NSString *)slotID rootViewController:(UIViewController *)rootViewController adSize:(CGSize)adSize;

/**加载广告数据*/
- (void)loadAdData;

@end
